<template>
  <div class="app">
    <header>
      <router-view name="navbar"></router-view>
    </header>
    <main class="main-content">
      <router-view></router-view>
    </main>
    <footer>
      <router-view name="tabbar"></router-view>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {}
  },
}
</script>

<style>
  body,html{
    height: 100%;
  }
</style>

<style lang="less" scoped>
  .app {
    height: 100%;
    display: flex;
    flex-direction: column;
    .main-content {
      flex: 1;
      overflow: auto;
      padding-bottom: 50px;
    }
  }
</style>
